#include "tcpserver.hpp"
#include "inetshell.hpp"
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "usage : " << argv[0] << " port" << std::endl;
        exit(1);
    }
    uint16_t port = std::stoi(argv[1]);
    InetShell shell;
    TcpServer tsvr(port, [&shell](const std::string &com) -> std::string
                   { return shell.Execute(com); });
    tsvr.Init();
    tsvr.Start();
    return 0;
}